#pragma strict


function Start () {

}

function Update () {

	var micCount = 0;
	var nameOfMic: String = "no name";
	for (var device in Microphone.devices) {

		micCount++;	
    }   
    
    if (micCount >= 1) {
    
    	nameOfMic = Microphone.devices[0];
    }
    
    guiText.text = String.Format("{0} microphones. The first one is {1}", 
    	micCount, nameOfMic );
}